/**
 * 
 */
package br.srv.full.virtual.entities.faces;

import java.io.Serializable;

/**
 * @author Delfino
 * 
 */
public class IDFacesActionMethod implements Serializable {

	public String facesManagedBean;
	public String name;

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object p_obj) {
		boolean l_result = true;
		if (p_obj instanceof IDFacesActionMethod) {
			IDFacesActionMethod l_id = (IDFacesActionMethod) p_obj;
			l_result &= facesManagedBean != null ? facesManagedBean.equals(l_id.facesManagedBean)
					: facesManagedBean == l_id.facesManagedBean;
			l_result &= name != null ? name.equals(l_id.name) : name == l_id.name;
		} else
			l_result = false;

		return l_result;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		return super.hashCode();
	}
}
